package com.hxzy.tms.service;

import java.io.Serializable;
/**
 * 运行状态类
 * @author team1
 *
 * @param <T> 实体类
 */
public class ServiceResult<T extends Serializable> {
    public final int status;
    public final T data;
    public final String message;
    
    public ServiceResult(int status) {
        this.status = status;
        this.data = null;
        this.message = "";
    }

    public ServiceResult(int status, T data) {
        this.status = status;
        this.data = data;
        this.message = "";
    }

    public ServiceResult(int status, T data, String message) {
        this.status = status;
        this.data = data;
        this.message = message;
    }
}
